package com.castle.fortress.admin.job.task;


import com.castle.fortress.admin.study.course.service.StudyCoursewareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时pdf转图片
 */
@Component("courseWareTask")
public class CourseWareTask implements ITask{


    @Autowired
    StudyCoursewareService cpbCoursewareService;

    @Override
    public void runTask(String params) {
        System.out.println("pfd转图片定时任务启动");
        cpbCoursewareService.savePdf2Png();
    }
}
